package com.dubbo.example.dubboprovider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.example.dubboapi.entity.AccountInfo;
import com.dubbo.example.dubboapi.service.auth.AuthService;

/**
 * 注意：@service-使用bubbo的注解
 * api.service.version = 1.0.0
 */
@Service(version = "${api.service.version}")
public class AuthServiceImpl implements AuthService {

    @Override
    public AccountInfo authorize(String tokenCode) {
        //查询sql or nosql
        //
        AccountInfo accountInfo=new AccountInfo();
        accountInfo.setAccessToken("12adieso1dk3lasd");
        accountInfo.setAccountEmail("1299578272@qq.com");
        accountInfo.setAccountPhone("18971400861");
        accountInfo.setCreateByProductId("sso");
        accountInfo.setAccountRole("test");
        accountInfo.setAccountName("fzj读你");
        accountInfo.setAccountStatus("6");
        return accountInfo;
    }
}
